<?php
/**
 * Created by PhpStorm.
 * User: LOPO
 * Date: 2020/4/15
 * Time: 12:13
 */
namespace App\HttpController;

use EasySwoole\Http\AbstractInterface\Controller;

class Index extends Controller
{

    public function index()
    {
        // TODO: Implement index() method.
        $data =[
            'id'=>1,
            'name'=>'lopo'
        ];
        return $this->writeJson(200,'OK',$data);
    }
    public function video(){
        $data =[
            'id'=>2,
            'name'=>'lopo'
        ];
        return $this->writeJson(200,'OK',$data);
    }
}